package com.heima.admin.operationEnum;

/**
 * 请求方式枚举
 */
public enum HttpRequestMethod {
    /**
     * GET    1
     */
    GET(1),
    /**
     * POST   2
     */
    POST(2),
    /**
     * PUT   3
     */
    PUT(3),
    /**
     * DELETE   4
     */
    DELETE(4),
    /**
     * HEAD   5
     */
    HEAD(5),
    /**
     * OPTIONS   6
     */
    OPTIONS(6),
    /**
     * PATCH   7
     */
    PATCH(7);

    private int code;

    HttpRequestMethod(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}